I am not able to scan or read the 1D barcode present in the device photos library image, whereas the same I have achieved for QR code(2D barcode) image using the below code.
CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:nil options:@{CIDetectorAccuracy:CIDetectorAccuracyHigh}];
if (detector)
{
CIImage *img = [[CIImage alloc]initWithImage:image];
NSArray* imgFeatures = [detector featuresInImage:img];
NSString* contents;
for (CIQRCodeFeature* imgFeature in imgFeatures)
{
DLog(@"decode %@ ",imgFeature.messageString);
contents = imgFeature.messageString;
if(contents){
DLog(@"Success");
}else{
DLog(@"Failure");
}
return;
}
}
As per my inference, the CIDetector has only the following types to detect from image
CIDetectorTypeFace
CIDetectorTypeRectange
CIDetectorTypeQRCode
CIDetectorTypeText
https://developer.apple.com/documentation/coreimage/cidetector/detector_types?language=objc
Please let me know how I can get my barcode images from the device photos library read/scanned.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The line separator is missing in the alert controller. I am encountering this issue only in the iPhone 12 series devices running iOS 15, in the other versions it works fine. Please share your inputs.
Screen capture from iPhone 12 (Line separator is absent)
Screen capture from iPhone 11
Here, I have annotated the line separator with a red color box.
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My title" message:@"My subtitle" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {}]; [alert addAction:defaultAction]; [m_window.rootViewController presentViewController:alert animated:YES completion:nil];
I am getting a grey line in UITableViewCell. I debugged with all possible ways, but I couldn’t figure out the root cause. In addition, this issue occurs only in iPhone 12 devices running with iOS 15. Please share your inputs.
_Screen capture from iPhone 12 _
Here, I have annotated the line separator with a red color box.
The line separator is missing in the alert controller. I am encountering this issue only in the iPhone 12 series devices running iOS 15, in the other versions it works fine. Please share your inputs.
Screen capture from iPhone 12 (Line separator is absent)
Screen capture from iPhone 11
Here, I have annotated the line separator with a red color box.
`UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My title" message:@"My subtitle" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {}];
[alert addAction:defaultAction];
[m_window.rootViewController presentViewController:alert animated:YES completion:nil];